<div th:fragment="menu_form">
    <input type="hidden" id="menuId">
    <form id="form" class="form-horizontal">
        <div class="box-body">
            <div id="show_tree" class="form-group">
                <label for="parentName" class="col-sm-2 control-label">上级菜单</label>
                <div class="col-sm-10">
                    <input type="hidden" id="parentId">
                    <input type="text" class="form-control" id="parentName" onfocus="openMenuTree()" autocomplete="off">
                </div>
            </div>
            <div class="form-group">
                <label for="menuType" class="col-sm-2 control-label">菜单类型</label>
                <div class="col-sm-10">
                    <select id="menuType" class=" select2" style="width: 100%;" onchange="changeForm()">
                        <option value="0">目录</option>
                        <option value="1" selected>菜单</option>
                        <option value="2">按钮</option>
                    </select>
                </div>
            </div>
            <div id="show_name" class="form-group">
                <label for="name" class="col-sm-2 control-label">菜单名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="name" name="name" autocomplete="off">
                </div>
            </div>
            <div id="show_href" class="form-group">
                <label for="hrefs" class="col-sm-2 control-label">请求地址</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="hrefs" name="hrefs" autocomplete="off">
                </div>
            </div>
            <div id="show_perm" class="form-group">
                <label for="permission" class="col-sm-2 control-label">权限标识</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="permission" name="permission" autocomplete="off">
                </div>
            </div>
            <div id="show_sort" class="form-group">
                <label for="sort" class="col-sm-2 control-label">排序</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="sort" name="sort" autocomplete="off">
                </div>
            </div>
            <div id="show_icon" class="form-group">
                <label for="icon" class="col-sm-2 control-label">图标</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="icon" name="icon" autocomplete="off">
                </div>
            </div>
            <div id="show_status" class="form-group">
                <label for="isShow" class="col-sm-2 control-label">菜单状态</label>
                <div class="col-sm-10" id="isShow">
                    <input type="radio" name="isShow" value="0" class="flat-red" checked>
                    显示
                    <input type="radio" name="isShow" value="1" class="flat-red">
                    隐藏
                </div>
            </div>
        </div>
        <div class="box-footer">
            <button type="button" class="btn btn-info pull-right" onclick="save()">提交</button>
        </div>
    </form>

</div>